.class public Lcc/fs/study/hotfix/HotFixActivity_CF;
.super Landroid/support/v7/app/AppCompatActivity;
.source "HotFixActivity.java"


# instance fields
.field btn:Landroid/widget/Button;

.field patchPath:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 20
    invoke-direct {p0}, Landroid/support/v7/app/AppCompatActivity;-><init>()V

    .line 23
    const-string v0, ""

    iput-object v0, p0, Lcc/fs/study/hotfix/HotFixActivity_CF;->patchPath:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;
    .annotation runtime Lcom/alipay/euler/andfix/annotation/MethodReplace;
        method = "onCreate"
        clazz = "cc.fs.study.hotfix.HotFixActivity"
    .end annotation

    .prologue
    .line 27
    invoke-super {p0, p1}, Landroid/support/v7/app/AppCompatActivity;->onCreate(Landroid/os/Bundle;)V

    .line 28
    const v1, 0x7f04001a

    invoke-virtual {p0, v1}, Lcc/fs/study/hotfix/HotFixActivity_CF;->setContentView(I)V

    .line 30
    const v1, 0x7f0c0053

    invoke-virtual {p0, v1}, Lcc/fs/study/hotfix/HotFixActivity_CF;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const-string v2, "bug\u5df2\u7ecf\u88ab\u4fee\u590d\u4e86"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 32
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v2

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "StudyPatch"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 33
    .local v0, "file":Ljava/io/File;
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    .line 34
    invoke-virtual {v0}, Ljava/io/File;->mkdir()Z

    .line 37
    :cond_0
    const-string v1, "-\u8865\u4e01\u7a0b\u5e8f-"

    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 40
    const v1, 0x7f0c0054

    invoke-virtual {p0, v1}, Lcc/fs/study/hotfix/HotFixActivity_CF;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcc/fs/study/hotfix/HotFixActivity_CF;->btn:Landroid/widget/Button;

    .line 41
    iget-object v1, p0, Lcc/fs/study/hotfix/HotFixActivity_CF;->btn:Landroid/widget/Button;

    new-instance v2, Lcc/fs/study/hotfix/HotFixActivity$1;

    invoke-direct {v2, p0, v0}, Lcc/fs/study/hotfix/HotFixActivity$1;-><init>(Lcc/fs/study/hotfix/HotFixActivity;Ljava/io/File;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 52
    return-void
.end method
